﻿namespace SchoolExercise
{
    internal class Discipline : ICommentable
    {
        private string name;
        private byte numberOfLectures;
        private byte numberOfExercises;
        private string comment;

        public Discipline(string nameOfDescipline, byte numberOfLectures, byte numberOfExercises)
        {
            this.Name = nameOfDescipline;
            this.NumberOfExercises = numberOfExercises;
            this.NumberOfLectures = numberOfLectures;
        }

        public Discipline(string nameOfDescipline, byte numberOfLectures, byte numberOfExercises, string comment)
            : this(nameOfDescipline, numberOfLectures, numberOfExercises)
        {
            this.Comment = comment;
        }

        public string Name
        {
            get
            {
                return this.name;
            }

            private set
            {
                this.name = value;
            }
        }

        public byte NumberOfLectures
        {
            get
            {
                return this.numberOfLectures;
            }

            private set
            {
                this.numberOfLectures = value;
            }
        }

        public byte NumberOfExercises
        {
            get
            {
                return this.numberOfExercises;
            }

            private set
            {
                this.numberOfExercises = value;
            }
        }

        public string Comment
        {
            get
            {
                return this.comment;
            }

            set
            {
                this.comment = value;
            }
        }
    }
}